home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 47
/
Aminet 47 (2002)(GTI - Schatztruhe)[Feb 2002].iso
/
Aminet
/
dev
/
lang
/
AmigaTalk.lha
/
user
/
Quaternion.p
< prev
next >
Wrap
Text File
|
2000-05-09
|
8KB
|
182 lines
pTempVar <- <primitive 110 26 >
<primitive 112 pTempVar 1 " ~= " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r10 16r22 \
16r80 16r01 16rCA 16r11 16r22 16r80 16r02 16rCA 16r81 16r03 \
16r12 16r22 16r80 16r04 16rCA 16r81 16r03 16r13 16r22 16r80 \
16r05 16rCA 16r81 16r03 16rF7 16r04 16r5B 16rF3 16rF8 16r03 \
16rF2 16r5C 16rF3 16rF2 16rF5] \
#( #isKindOf: #spart #ipart #! #jpart #kpart )) >
<primitive 112 pTempVar 2 " >= " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r10 16r22 \
16r80 16r01 16rCB 16r11 16r22 16r80 16r02 16rCB 16r81 16r03 \
16r12 16r22 16r80 16r04 16rCB 16r81 16r03 16r13 16r22 16r80 \
16r05 16rCB 16r81 16r03 16rF7 16r04 16r5B 16rF3 16rF8 16r03 \
16rF2 16r5C 16rF3 16rF2 16rF5] \
#( #isKindOf: #spart #ipart #& #jpart #kpart )) >
<primitive 112 pTempVar 3 " <= " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r10 16r22 \
16r80 16r01 16rC8 16r11 16r22 16r80 16r02 16rC8 16r81 16r03 \
16r12 16r22 16r80 16r04 16rC8 16r81 16r03 16r13 16r22 16r80 \
16r05 16rC8 16r81 16r03 16rF7 16r04 16r5B 16rF3 16rF8 16r03 \
16rF2 16r5C 16rF3 16rF2 16rF5] \
#( #isKindOf: #spart #ipart #& #jpart #kpart )) >
<primitive 112 pTempVar 4 " > " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r10 16r22 \
16r80 16r01 16rCC 16r11 16r22 16r80 16r02 16rCC 16r81 16r03 \
16r12 16r22 16r80 16r04 16rCC 16r81 16r03 16r13 16r22 16r80 \
16r05 16rCC 16r81 16r03 16rF7 16r04 16r5B 16rF3 16rF8 16r03 \
16rF2 16r5C 16rF3 16rF2 16rF5] \
#( #isKindOf: #spart #ipart #& #jpart #kpart )) >
<primitive 112 pTempVar 5 " < " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r20 16r80 \
16r01 16rF2 16r22 16r80 16r01 16rF2 16r10 16r22 16r80 16r02 \
16rC7 16r11 16r22 16r80 16r03 16rC7 16r81 16r04 16r12 16r22 \
16r80 16r05 16rC7 16r81 16r04 16r13 16r22 16r80 16r06 16rC7 \
16r81 16r04 16rF7 16r04 16r5B 16rF3 16rF8 16r03 16rF2 16r5C \
16rF3 16rF2 16rF5] \
#( #isKindOf: #computeMag #spart #ipart #& #jpart #kpart )) >
<primitive 112 pTempVar 6 " == " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r10 16r22 \
16r80 16r01 16rC9 16r11 16r22 16r80 16r02 16rC9 16r81 16r03 \
16r12 16r22 16r80 16r04 16rC9 16r81 16r03 16r13 16r22 16r80 \
16r05 16rC9 16r81 16r03 16rF7 16r04 16r5B 16rF3 16rF8 16r03 \
16rF2 16r5C 16rF3 16rF2 16rF5] \
#( #isKindOf: #spart #ipart #& #jpart #kpart )) >
<primitive 112 pTempVar 7 " printString " \
#( #[ 16r30 16r10 16rFA 16r01 16r4E 16r0B 16r11 16r31 16r0B 16r11 16r11 \
16rFA 16r01 16r4E 16r0B 16r11 16r31 16r0B 16r11 16r12 16rFA \
16r01 16r4E 16r0B 16r11 16r31 16r0B 16r11 16r13 16rFA 16r01 \
16r4E 16r0B 16r11 16r32 16r0B 16r11 16rA8 16rF2 16r20 16rF3 \
16rF5] \
#( '{' ', ' '}' )) >
<primitive 112 pTempVar 8 " / " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r22 16r80 \
16r01 16r32 16rB5 16r22 16r80 16r03 16r34 16rB5 16r81 16r05 \
16rF7 16r07 16r36 16rFA 16r01 16r7B 16rF2 16r5D 16rF3 16rF2 \
16r20 16r22 16r80 16r07 16rC2 16rF2 16r20 16rF3 16rF5] \
#( #isKindOf: #spart 0.0 #ipart 0.0 #& 'Quaternion error: Division by zero!' #inverse )) >
<primitive 112 pTempVar 9 " * " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r10 16r22 \
16r80 16r01 16rC2 16r11 16r22 16r80 16r02 16rC2 16rC1 16r12 \
16r22 16r80 16r03 16rC2 16rC1 16r13 16r22 16r80 16r04 16rC2 \
16rC1 16r60 16r11 16r22 16r80 16r01 16rC2 16r10 16r22 16r80 \
16r02 16rC2 16rC0 16r13 16r22 16r80 16r03 16rC2 16rC0 16r12 \
16r22 16r80 16r04 16rC2 16rC1 16r61 16r12 16r22 16r80 16r01 \
16rC2 16r13 16r22 16r80 16r02 16rC2 16rC1 16r10 16r22 16r80 \
16r03 16rC2 16rC0 16r11 16r22 16r80 16r04 16rC2 16rC0 16r62 \
16r13 16r22 16r80 16r01 16rC2 16r12 16r22 16r80 16r02 16rC2 \
16rC0 16r11 16r22 16r80 16r03 16rC2 16rC1 16r10 16r22 16r80 \
16r04 16rC2 16rC0 16r63 16r20 16rF3 16rF5] \
#( #isKindOf: #spart #ipart #jpart #kpart )) >
<primitive 112 pTempVar 10 " - " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r20 16r80 \
16r01 16r22 16r80 16r01 16rC1 16r60 16r20 16r80 16r02 16r22 \
16r80 16r02 16rC1 16r61 16r20 16r80 16r03 16r22 16r80 16r03 \
16rC1 16r62 16r20 16r80 16r04 16r22 16r80 16r04 16rC1 16r63 \
16r20 16rF3 16rF5] \
#( #isKindOf: #spart #ipart #jpart #kpart )) >
<primitive 112 pTempVar 11 " + " \
#( #[ 16r21 16r20 16rA4 16r81 16r00 16rF6 16r07 16r20 16r21 16rBF 16rF1 \
16r72 16rF8 16r04 16rF2 16r21 16rF1 16r72 16rF2 16r22 16r80 \
16r01 16r20 16r80 16r01 16rC0 16r60 16r22 16r80 16r02 16r20 \
16r80 16r02 16rC0 16r61 16r22 16r80 16r03 16r20 16r80 16r03 \
16rC0 16r62 16r22 16r80 16r04 16r20 16r80 16r04 16rC0 16r63 \
16r20 16rF3 16rF5] \
#( #isKindOf: #spart #ipart #jpart #kpart )) >
<primitive 112 pTempVar 12 " inverse " \
#( #[ 16r20 16r80 16r00 16r31 16rC9 16rF7 16r07 16r32 16rFA 16r01 16r7B \
16rF2 16r5D 16rF3 16rF2 16r20 16r80 16r03 16r20 16r80 16r00 \
16rBE 16rF3 16rF5] \
#( #norm 0.0 'Quaternion error: Division by zero!' #conjugate )) >
<primitive 112 pTempVar 13 " norm " \
#( #[ 16r10 16r10 16rC2 16r11 16r11 16rC2 16rC0 16r12 16r12 16rC2 16rC0 \
16r13 16r13 16rC2 16rC0 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 14 " ~^ " \
#( #[ 16r20 16rF2 16rF5] \
#( )) >
<primitive 112 pTempVar 15 " conjugate " \
#( #[ 16r30 16r11 16rC2 16r61 16r31 16r12 16rC2 16r62 16r32 16r13 16rC2 \
16r63 16r20 16rF3 16rF5] \
#( -1.0 -1.0 -1.0 )) >
<primitive 112 pTempVar 16 " coerce: " \
#( #[ 16r40 16rA0 16r72 16r22 16r21 16r81 16r01 16rF2 16r22 16r32 16r81 \
16r03 16rF2 16r22 16r34 16r81 16r05 16rF2 16r22 16r36 16r81 \
16r07 16rF2 16r22 16rF3 16rF5] \
#( #Quaternion #tensor: 0.0 #ipart: 0.0 #jpart: 0.0 #kpart: )) >
<primitive 112 pTempVar 17 " versor:p2:p3: " \
#( #[ 16r21 16r61 16r22 16r62 16r23 16r63 16rF5] \
#( )) >
<primitive 112 pTempVar 18 " kpart: " \
#( #[ 16r21 16r63 16rF5] \
#( )) >
<primitive 112 pTempVar 19 " jpart: " \
#( #[ 16r21 16r62 16rF5] \
#( )) >
<primitive 112 pTempVar 20 " ipart: " \
#( #[ 16r21 16r61 16rF5] \
#( )) >
<primitive 112 pTempVar 21 " tensor: " \
#( #[ 16r21 16r60 16rF5] \
#( )) >
<primitive 112 pTempVar 22 " kpart " \
#( #[ 16r13 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 23 " jpart " \
#( #[ 16r12 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 24 " ipart " \
#( #[ 16r11 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 25 " tensor " \
#( #[ 16r10 16rF3 16rF5] \
#( )) >
<primitive 112 pTempVar 26 " new " \
#( #[ 16r05 16r2B 16r30 16rB0 16r60 16r05 16r2B 16r31 16rB0 16r61 16r05 \
16r2B 16r32 16rB0 16r62 16r05 16r2B 16r33 16rB0 16r63 16rF5 \
] \
#( 0.0 0.0 0.0 0.0 )) >
<primitive 98 #Quaternion \
<primitive 97 #Quaternion #Magnitude #Quaternion.st \
#( #s #i #j #k ) \
#( #~= #>= #<= #> #< #== #printString #/ #* #- #+ #inverse #norm #~^ #conjugate \
#coerce: #versor:p2:p3: #kpart: #jpart: #ipart: #tensor: #kpart #jpart #ipart #tensor \
#new ) \
pTempVar 6 19 >>